
#pragma once																// include once
// 
class CBoard
{
	private:
		int run_once;														// definition of the run_once variable

										// pointer to the index buffer
		ID3D10InputLayout* p_inputLayout;									// pointer to the input layout
		ID3D10Effect* p_d3dEffect;											// pointer to the D3D effect object
		ID3D10EffectTechnique* p_d3dEffectTech;								// pointer to the effect technique object
		ID3D10ShaderResourceView* p_d3d10TextureResourceView;
		ID3D10ShaderResourceView* p_inputTextureResource;// pointer to the shader resource structure
		ID3D10EffectShaderResourceVariable* p_d3dEffectShaderResource;
		ID3D10EffectShaderResourceVariable* p_inputEffectShaderResource;		// pointer to the shader effect variable class
		//ID3D10Buffer* p_vertexBuffer;										// pointer to the vertex buffer
		//ID3D10Buffer* p_indexBuffer;	

		ID3D10EffectMatrixVariable* p_d3dEffectWorldMatrix;					// effect world matrix variable
		ID3D10EffectMatrixVariable* p_d3dEffectViewMatrix;					// effect view matrix variable
		ID3D10EffectMatrixVariable* p_d3dEffectProjectMatrix;				// effect projection matrix variable

											// define the projection matrix

	
		
	

		public:

		

		CBoard(void);														//ctor
		~CBoard(void);														//~dtor

		// define the board setup function
		HRESULT setupBoard();

		// define the board drawing function
		void draw();
		void drawNew();
		void setIndexData(UINT index_array[]);
	
};

